import request from '../utils/request'

export const getServiceUser = (nextIndex = 0) => request({
    url: 'http://127.0.0.1:5173/api/v1/service',
    params: {
        nextIndex
    }
})

export const addServiceUser = user => request({
    url: 'http://127.0.0.1:5173/api/v1/service',
    method: 'POST',
    data: user,
})

export const updateServiceUser = user => request({
    url: 'http://127.0.0.1:5173/api/v1/service',
    method: 'PUT',
    data: user
})

export const findServiceUser = id => request({
    url: 'http://127.0.0.1:5173/api/service',
    method: 'GET',
    params: {
        id
    }
})